package com.example.product.config;

import com.example.product.pjo.Dog;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;


@Configuration
public class ZDogConfig {

    public ZDogConfig() {
        int a = 1;
    }

    @Bean
    @ConditionalOnMissingBean(name = "jobs")
    public Dog dog()
    {
        Dog dog = new Dog();
        dog.setFamily("nanjing");
        return dog;
    }
}
